<%--
  Created by IntelliJ IDEA.
  User: 31324
  Date: 2025/6/14
  Time: 18:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>智慧教育后台管理系统</title>
  <link rel="stylesheet" href="/layui/css/layui.css">
  <script src="/layui/layui.js"></script>
  <script src="/layui/jquery-3.6.0.min.js"></script>
  <style>
    body{
      overflow: hidden;
    }
    #top{

    }
    #left{

    }
    #right{

    }
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="dd layui-header" id="top">
    <div class="layui-logo layui-hide-xs layui-bg-black">后台管理</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->

    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-md-inline-block">
        ${user.username}
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect="">
        <a href="/user/logout">
          退出
        </a>
      </li>
      <span class="layui-nav-bar" style="left: 20px; width: 0px; opacity: 0; top: 55px;"></span>
    </ul>
  </div>

  <div class="dd layui-side layui-bg-black" id="left">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">系统管理<i
                  class="layui-icon layui-icon-down layui-nav-more"></i></a>
          <dl class="layui-nav-child">
            <dd><a url="/users/findAll">用户管理</a></dd>
            <dd><a url="/role/findAll">角色管理</a></dd>
            <dd><a url="/permission/findAll">权限管理</a></dd>
            <dd><a url="/syslog/findAll">日志管理</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a href="javascript:;">功能服务<i class="layui-icon layui-icon-down layui-nav-more"></i></a>
          <dl class="layui-nav-child">
            <%--                            <dd><a url="/product/findAll">产品管理</a></dd>--%>
            <%--                            <dd><a url="/orders/findAll">订单管理</a></dd>--%>
            <dd><a url="/video/findAll">视频管理</a></dd>
            <dd><a url="/videoStu/findAll">在线学习</a></dd>
          </dl>
        </li>


        <span class="layui-nav-bar" style="top: 315px; height: 0px; opacity: 0;"></span>
      </ul>
    </div>
  </div>
  <div class="dd layui-body" style="overflow:hidden;" id="right">


    <iframe id="nr" width="100%" src="/page/ok.jsp" height="1200px"></iframe>

  </div>

  <%--        <div class="layui-footer">--%>
  <%--            <!-- 底部固定区域 -->--%>

  <%--        </div>--%>
</div>

<script>
  //JS
  layui.use(['element', 'layer', 'util'], function () {
    var element = layui.element
            , layer = layui.layer
            , util = layui.util
            , $ = layui.$;
  });

  $(function () {
    $("dd > a").click(function () {
      $("#nr").attr("src", $(this).attr("url"))
    })
  })

</script>
</body>
</html>
